<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
//二定位樣版
$arrCon = file($strTemplatePath."NumberTemplate1.html");
$strCon1 = join("", $arrCon);
$strCon1 = str_replace(chr(13), "", $strCon1);
$strCon1 = str_replace(chr(10), "", $strCon1);

//三定位樣版
$arrCon = file($strTemplatePath."NumberTemplate7.html");
$strCon7 = join("", $arrCon);
$strCon7 = str_replace(chr(13), "", $strCon7);
$strCon7 = str_replace(chr(10), "", $strCon7);

//四定位樣版
$arrCon = file($strTemplatePath."NumberTemplate11.html");
$strCon11 = join("", $arrCon);
$strCon11 = str_replace(chr(13), "", $strCon11);
$strCon11 = str_replace(chr(10), "", $strCon11);

//二字樣版
//$arrCon = file($strTemplatePath."NumberTemplate12.html");
//$strCon12 = join("", $arrCon);
//$strCon12 = str_replace(chr(13), "", $strCon12);
//$strCon12 = str_replace(chr(10), "", $strCon12);

//三字樣版
$arrCon = file($strTemplatePath."NumberTemplate13.html");
$strCon13 = join("", $arrCon);
$strCon13 = str_replace(chr(13), "", $strCon13);
$strCon13 = str_replace(chr(10), "", $strCon13);

//合數單雙大小
$arrCon = file($strTemplatePath."NumberTemplate16.html");
$strCon16 = join("", $arrCon);
$strCon16 = str_replace(chr(13), "", $strCon16);
$strCon16 = str_replace(chr(10), "", $strCon16);

//定位
$arrCon = file($strTemplatePath."NumberTemplate18.html");
$strCon18 = join("", $arrCon);
$strCon18 = str_replace(chr(13), "", $strCon18);
$strCon18 = str_replace(chr(10), "", $strCon18);

//已開獎樣版
$arrCon = file($strTemplatePath."StartGameTemplate.html");
$strConSG = join("", $arrCon);
$strConSG = str_replace(chr(13), "", $strConSG);
$strConSG = str_replace(chr(10), "", $strConSG);
foreach($_strRealBet7S as $k => $v){
	$strCon1 = str_replace("{".$k."}", $v, $strCon1);
	$strCon7 = str_replace("{".$k."}", $v, $strCon7);
	$strCon11 = str_replace("{".$k."}", $v, $strCon11);
	$strCon13 = str_replace("{".$k."}", $v, $strCon13);
	$strCon16 = str_replace("{".$k."}", $v, $strCon16);
	$strCon18 = str_replace("{".$k."}", $v, $strCon18);
	$strConSG = str_replace("{".$k."}", $v, $strConSG);
}

$strCon = "var strLayer1=\"".addslashes($strCon1)."\";\n";
$strCon .= "var strLayer7=\"".addslashes($strCon7)."\";\n";
$strCon .= "var strLayer11=\"".addslashes($strCon11)."\";\n";
$strCon .= "var strLayer13=\"".addslashes($strCon13)."\";\n";
$strCon .= "var strLayer16=\"".addslashes($strCon16)."\";\n";
$strCon .= "var strLayer18=\"".addslashes($strCon18)."\";\n";
$strCon .= "var strLayerStart=\"".addslashes($strConSG)."\";\n";

$strFile = __Root_Path."/inc/RealBetTemp7Star".$_intLang.".js";
if(!writeFile($strFile, $strCon, "w"))ErrMsgOutputHTML("Error", "", 1);
?>